﻿/*
#------------------------------------------------------------------------------
#-- Program Name:	[dbo].[fnConfig_IsEnterpriseSQL]
#-- Purpose:		Determines if the installed SQL Server instance is at
#--					least Enterprise Edition level.
#--	Last Update:	08/02/2012
#--					For a complete history - please review comments in Version
#--					control.
#------------------------------------------------------------------------------
*/
CREATE FUNCTION [dbo].[fnConfig_IsEnterpriseSQL]()
RETURNS BIT
AS
BEGIN
	RETURN	CAST(CASE WHEN SERVERPROPERTY('EngineEdition') = 3 THEN 1 ELSE 0 END as bit)
END
